package com.tanhua;

import com.tanhua.db.User;

public class UserHolder {
    private  static ThreadLocal<User> tl=new ThreadLocal<User>();

    public static void saveUser(User user){
        tl.set(user);
    }
    public static void removeUser(){
        tl.remove();
    }

    public static User getUser(){
       return tl.get();
    }

 }
